package com.flipdf2.render;

import java.awt.Image;
import java.awt.geom.AffineTransform;
import java.awt.geom.Rectangle2D;
import java.awt.image.ImageObserver;

import com.sun.pdfview.PDFPage;

public class PDFRenderedPage implements RenderedPage {

	private PDFPage page;

	public PDFRenderedPage(PDFPage page) {
		this.page = page;
	}

	public Rectangle2D getBBox() {
		return this.page.getBBox();
	}

	public Image getImage(int width, int height, Rectangle2D clip, ImageObserver observer) {
		return this.page.getImage(width, height, clip, observer);
	}

	public AffineTransform getInitialTransform(int width, int height, Rectangle2D clip) {
		return this.page.getInitialTransform(width, height, clip);
	}

}
